package com.alkaid.commons.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @author Kylin
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageEntity {
    @NotNull(message = "分页参数page错误")
    private Integer page;
    @NotNull(message = "分页参数rows错误")
    @Range(min = 20, max = 20, message = "分页参数rows错误")
    private Integer rows;
}
